package com.dailyblue.java.project.oa.commons.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dailyblue.java.project.oa.commons.bean.Emp;
import com.dailyblue.java.project.oa.commons.util.JsonResult;

import java.util.List;

public interface EmpService extends IService<Emp>{
    JsonResult<Integer> findEmpByECode(String ecode);

    JsonResult<Integer> findEmpByPhone(String phone);

    JsonResult saveEmp(Emp emp);

    JsonResult find(Emp emp);

    JsonResult find(int page);

    JsonResult delete(int id,int nowPage,int allPage);
}
